<?php /* Smarty version 2.6.16, created on 2009-04-16 03:19:17
         compiled from Rating.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'Rating.html', 2, false),array('function', 'language', 'Rating.html', 54, false),)), $this); ?>
<?php if (! $this->_tpl_vars['bUseAjax']): ?>
	<form method="post" action="<?php echo smarty_function_url(array('link' => 'current'), $this);?>
" style="margin:0px;">
		<select name="rating" <?php echo 'onchange="if (this.value!=\'false\') { submit(); }"'; ?>
>
		<option value="false">Select</option>
		<option value="10">10</option>
		<option value="9">9</option>
		<option value="8">8</option>
		<option value="7">7</option>
		<option value="6">6</option>
		<option value="5">5</option>
		<option value="4">4</option>
		<option value="3">3</option>
		<option value="2">2</option>
		<option value="1">1</option>
		</select>
	</form>
<?php else: ?>
<script type="text/javascript" src="design/js/stars.js"></script>
<script type="text/javascript">
<?php echo '
function start_rating()
{
	document.getElementById(\'ratingMessage\').style.display=\'none\';
	document.getElementById(\'show_stars\').style.display=\'none\';
	document.getElementById(\'ajax_rating_loader\').style.display=\'\';
}
'; ?>

</script>

<table style="font-size:10pt;" class="color" cellpadding="0" cellspacing="0">
<tr>
	<td style="vertical-align:top;">
	<div id="ratingDiv">

	<form style="display:none;" name="ratingForm" action="#" method="post"></form>

	<div id="show_stars">
	<a href="#" onclick="start_rating(); xajax_setStars('2', '<?php echo $this->_tpl_vars['iId']; ?>
'); return false;" onmouseover="ratingComponent.showStars(1);" onmouseout="ratingComponent.clearStars();">
	<img src="design/pic/stars/icn_star_empty_19x20.png" id="star__1" class="rating" style="border: 0px; vertical-align:bottom;" /></a>

	<a href="#" onclick="start_rating(); xajax_setStars('4', '<?php echo $this->_tpl_vars['iId']; ?>
'); return false;" onmouseover="ratingComponent.showStars(2);" onmouseout="ratingComponent.clearStars();">
	<img src="design/pic/stars/icn_star_empty_19x20.png" id="star__2" class="rating" style="border: 0px; vertical-align:bottom;" /></a>

	<a href="#" onclick="start_rating(); xajax_setStars('6', '<?php echo $this->_tpl_vars['iId']; ?>
'); return false;" onmouseover="ratingComponent.showStars(3);" onmouseout="ratingComponent.clearStars();">
	<img src="design/pic/stars/icn_star_empty_19x20.png" id="star__3" class="rating" style="border: 0px; vertical-align:bottom;" /></a>

	<a href="#" onclick="start_rating(); xajax_setStars('8', '<?php echo $this->_tpl_vars['iId']; ?>
'); return false;" onmouseover="ratingComponent.showStars(4);" onmouseout="ratingComponent.clearStars();">
	<img src="design/pic/stars/icn_star_empty_19x20.png" id="star__4" class="rating" style="border: 0px; vertical-align:bottom;" /></a>

	<a href="#" onclick="start_rating(); xajax_setStars('10', '<?php echo $this->_tpl_vars['iId']; ?>
'); return false;" onmouseover="ratingComponent.showStars(5);" onmouseout="ratingComponent.clearStars();">
	<img src="design/pic/stars/icn_star_empty_19x20.png" id="star__5" class="rating" style="border: 0px; vertical-align:bottom;" /></a>

	<div style="padding:2px;">
	<?php echo $this->_tpl_vars['iTotal']; ?>
 <?php echo smarty_function_language(array('text' => 'Mod_Video.ratings'), $this);?>

	</div>

	</div>

	</div>
	</td>
	<td style="font-weight:bold;vertical-align:top;">
	<div style="padding-left:4px;">
		<span id="ajax_rating_loader" style="display:none;font-size:10pt;font-weight:bold;">
			<img src="design/pic/loader.gif" alt="" style="vertical-align:bottom;" /> <?php echo smarty_function_language(array('text' => 'Mod_Video.rate.this.video'), $this);?>

		</span>
		<div id="ratingMessage"></div>
		<div id="thanksMessage"></div>
	</div>
	</td>
</tr>
</table>
<?php endif; ?>

<script type="text/javascript">
	messages = new Array("<?php echo smarty_function_language(array('text' => 'Mod_Video.rate.rateit'), $this);?>
", "<?php echo smarty_function_language(array('text' => 'Mod_Video.rate.poor'), $this);?>
", "<?php echo smarty_function_language(array('text' => 'Mod_Video.rate.nothing.special'), $this);?>
", "<?php echo smarty_function_language(array('text' => 'Mod_Video.worth.watching'), $this);?>
", "<?php echo smarty_function_language(array('text' => 'Mod_Video.pretty.cool'), $this);?>
", "<?php echo smarty_function_language(array('text' => 'Mod_Video.awesome'), $this);?>
");
	ratingComponent = new UTRating('ratingDiv', 5, 'ratingComponent', 'ratingForm', 'ratingMessage', '', 'L', messages);
	ratingComponent.starCount=<?php echo $this->_tpl_vars['showStars']; ?>
;
	ratingComponent.clearStars();
</script>